package com.cookbook.cookbookservice.mapper;

import com.cookbook.cookbookservice.model.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {
    /**
     * 通过微信id查找用户
     *
     * @param unionid
     * @return
     */
    User getUser(String unionid);

    /**
     * 修改用户信息
     *
     * @param user
     */
    void updateUser(User user);

    /**
     * 插入用户信息
     *
     * @param user
     */
    void insertUser(User user);

}
